<script type="text/javascript">
	function helpwarn(){
		$("#attribue").val($("#warnmsg").val());
	}
</script>
<div class="artCon" style="width:640px">
	<div class="middleArt">
	<form class="form-horizontal" id="mainForm" style="width:630px" action="/${orgi}/dm/cube/${cubeid!''}/${level.dimid!''}/leveledito.html" data-toggle="ajax-form" data-target="#levellist_div" method="post">
	<input type="hidden" value="${level.id}" name="id">
		<div class="artMain">
			<div class="mainCenter"> 
				<table class="data_table_1" style="margin-left: 10px;">
					<tr>
						<th>名称：</th>
						<td>
						<input type="text" value="${level.name!''}" class="span2" name="name" required="">
						<span class="help-inline"></span><i class="inputip">*</i>
						</td>
						<th>代码：</th>
						<td>
						${level.code!''}
						<input type="hidden" value="${level.code!''}" class="span2" name="code">
						</td>
					</tr>
					<tr>
						<th>数据类型：</th>
						<td>
						<select name="type" class="span2">
							<option value="">默认</option>
							<option <#if level.type?? && level.type=='String'>selected="selected"</#if> value="String">字符</option>
							<option <#if level.type?? && level.type=='Integer'>selected="selected"</#if> value="Integer">整数</option>
							<option <#if level.type?? && level.type=='Numeric'>selected="selected"</#if> value="Numeric">数字</option>
							<option <#if level.type?? && level.type=='Boolean'>selected="selected"</#if> value="Boolean">布尔</option>
							<option <#if level.type?? && level.type=='Date'>selected="selected"</#if> value="Date">日期</option>
							<option <#if level.type?? && level.type=='Timestamp'>selected="selected"</#if> value="Timestamp">时间戳</option>
						</select>
						</td>
						<th>成员类型：</th>
						<td>
						<select name="leveltype" class="span2">
							<option value="">默认</option>
							<option <#if level.leveltype?? && level.leveltype=='TimeYears'>selected="selected"</#if> value="TimeYears">TimeYears</option>
							<option <#if level.leveltype?? && level.leveltype=='TimeQuarters'>selected="selected"</#if> value="TimeQuarters">TimeQuarters</option>
							<option <#if level.leveltype?? && level.leveltype=='TimeMonths'>selected="selected"</#if> value="TimeMonths">TimeMonths</option>
							<option <#if level.leveltype?? && level.leveltype=='TimeWeeks'>selected="selected"</#if> value="TimeWeeks">TimeWeeks</option>
							<option <#if level.leveltype?? && level.leveltype=='TimeDays'>selected="selected"</#if> value="TimeDays">TimeDays</option>
							<option <#if level.leveltype?? && level.leveltype=='TimeHours'>selected="selected"</#if> value="TimeHours">TimeHours</option>
							<option <#if level.leveltype?? && level.leveltype=='TimeMinutes'>selected="selected"</#if> value="TimeMinutes">TimeMinutes</option>
						</select>
						</td>
					</tr>
					<tr>
						<th>权限属性：</th>
						<td>
						<label style="margin-left:2px;" class="radio inline"><input <#if level.permissions?? && level.permissions>checked="checked"</#if> type="radio" value="1" name="permissions">是</label>
						<label class="radio inline"><input type="radio" <#if level.permissions?? && !level.permissions>checked="checked"</#if> value="0" name="permissions">否</label>
						</td>
						<th>创建索引：</th>
						<td>
						<label style="margin-left:2px;" class="radio inline"><input <#if level.uniquemembers?? && level.uniquemembers>checked="checked"</#if> type="radio" value="true" name="uniquemembers">是</label>
						<label class="radio inline"><input type="radio" <#if level.uniquemembers?? && !level.uniquemembers>checked="checked"</#if> value="false" name="uniquemembers">否</label>
						</td>
					</tr>
					<tr>
						<th>格式化代码：</th>
						<td>
						<input type="text" value="${level.formatstr!''}" class="span2" name="formatstr">
						</td>
						<th>排序位置：</th>
						<td>
						<input type="text" value="${level.sortindex!''}" class="span2" name="sortindex">
						</td>
					</tr>
				<!-- <tr>
						<th>参数：</th>
						<td colspan="3">
						<textarea style="width:470px; height:50px; resize:none;" rows="1" class="span3" id="parameters" name="parameters">${level.parameters!''}</textarea>
						</td>

					</tr> -->	
					<tr>
						<th>属性：<a href="javascript:void(0)" onclick="helpwarn()">提示</a>
						
						</th>
						<td colspan="3">
						<textarea style="width:470px; height:110px; resize:none;margin-top:4px;" rows="4" class="span3" id="attribue" name="attribue">${level.attribue!''}</textarea>
<textarea id="warnmsg" style="display: none">
<KeyExpression>
	<SQL>
		
	</SQL>
</KeyExpression></textarea>
						</td>
						
					</tr>
					<tr>
						<th>描述：</th>
						<td colspan="3">
						<textarea style="width:470px; height:50px; resize:none;margin-top:4px;" rows="1" class="span3" id="description" name="description">${level.description!''}</textarea>
						</td>

					</tr>
				</table>
				
			</div>
		</div>
		<div class="bottomBg">
			<div class="btnWrap">
				<input type="submit" class="subButtonStyle" value="确认"/>
				<input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
			</div>
		</div>
	</form>
	</div>
</div>
